package com.edu.neusoft.student.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.edu.neusoft.student.mapper.SalespersonMapper;
import com.edu.neusoft.student.domain.Salesperson;
@Service
public class SalespersonService{

    @Resource
    private SalespersonMapper salespersonMapper;

    
    public int deleteByPrimaryKey(Integer salespersonid) {
        return salespersonMapper.deleteByPrimaryKey(salespersonid);
    }

    
    public int insert(Salesperson record) {
        return salespersonMapper.insert(record);
    }

    
    public int insertSelective(Salesperson record) {
        return salespersonMapper.insertSelective(record);
    }

    
    public Salesperson selectByPrimaryKey(Integer salespersonid) {
        return salespersonMapper.selectByPrimaryKey(salespersonid);
    }

    
    public int updateByPrimaryKeySelective(Salesperson record) {
        return salespersonMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Salesperson record) {
        return salespersonMapper.updateByPrimaryKey(record);
    }

}
